package com.log.pojo;

import com.log.enums.OptLogType;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * 操作日志配置类
 *
 * @author zuihou
 * @Date 2020年03月09日15:00:47
 */
@Component
@ConfigurationProperties(prefix = OptLogProperties.PREFIX)
@Data
@NoArgsConstructor
public class OptLogProperties {

    public static final String PREFIX = "zn.log";

    /**
     * 是否启用
     */
    private Boolean enabled = true;

    /**
     * 日志存储类型
     */
    private OptLogType type = OptLogType.DB;

    // 查询日志是否记录
    private Boolean enabledQuery = false;
}
